﻿@model SocialNetwork.User

@{
    ViewBag.Title = "DeleteUser";
}

<h2>DeleteUser</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>User</legend>

    <div class="display-label">RoleId</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.RoleId)
    </div>

    <div class="display-label">Username</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Username)
    </div>

    <div class="display-label">Email</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Email)
    </div>

    <div class="display-label">Password</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Password)
    </div>

    <div class="display-label">IsOnline</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.IsOnline)
    </div>

    <div class="display-label">RegDate</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.RegDate)
    </div>

    <div class="display-label">LoginDate</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.LoginDate)
    </div>

    <div class="display-label">LogoffDate</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.LogoffDate)
    </div>

    <div class="display-label">FirstName</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.FirstName)
    </div>

    <div class="display-label">LastName</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.LastName)
    </div>

    <div class="display-label">Nickname</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Nickname)
    </div>

    <div class="display-label">Age</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Age)
    </div>

    <div class="display-label">Sex</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Sex)
    </div>

    <div class="display-label">Mood</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Mood)
    </div>

    <div class="display-label">Avatara</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Avatara)
    </div>

    <div class="display-label">HomeAddress</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.HomeAddress)
    </div>

    <div class="display-label">Hobbies</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Hobbies)
    </div>

    <div class="display-label">JobPlace</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.JobPlace)
    </div>
</fieldset>
@using (Html.BeginForm(new {username = Model.Username} )){
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "UsersList")
    </p>
}
